﻿using System;
using System.Runtime.Serialization;

namespace HttpPublish
{
    [DataContract]
    class ResultSet
    {
        [DataMemberAttribute]
        public bool Result;
        [DataMemberAttribute]
        public string Msg;
        [DataMemberAttribute]
        public string AltMsg;
        [DataMemberAttribute]
        public string Error;
        [DataMemberAttribute]
        public UInt64 LastChanged;
        [DataMemberAttribute]
        public UInt64 FileSize;

        public static ResultSet DecodeResult(string json)
        {
            var newResult = JsonHelper.Deserialize<ResultSet>(json);
            return newResult;
        }
    }
}
